<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>护理项目列表</title>
<!-- 新 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet"
	href="${pageContext.request.contextPath }/js/common/bootstrap/css/bootstrap.min.css">

<!-- 可选的Bootstrap主题文件（一般不用引入） -->
<link rel="stylesheet"
	href="${pageContext.request.contextPath }/js/common/bootstrap/css/bootstrap-theme.min.css">

<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="${pageContext.request.contextPath }/js/jquery-3.1.1.min.js"></script>

<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script
	src="${pageContext.request.contextPath }/js/common/bootstrap/js/bootstrap.min.js"></script>

<script type="text/javascript">
var arr=[];
function fun(){
	$.each($("input[name=ch]:cheaked"),function(index){
		arr.push($(this).val());
	})
	alert(arr);
	document.forms[0].action="/bsc/jhy/addBag?arr"+arr;
	document.forms[0].submit();
}
</script>
</head>
<body>
<font size="5" color="red">请为礼包选择项目</font>
	<hr>
	
		<form action="/bsc/jhy/addBag"
			method="post" class="form-inline" id="myform">
						
		

		<table  data-toggle="table" class="table table-condensed table-striped">
			<tr>
				<td>项目编号</td>
				<td>选择</td>
				<td>项目名称</td>
				<td>分类</td>
				<td>服务时长(分钟)</td>
				<td>人民币售价(元)</td>
				<td>颜值售价(个)</td>
				<td>标准手工费(元)</td>
				<td>活动手工费(元)</td>
				<td>状态</td>
				<td>更新时间</td>
				<td>排序号</td>
				<td></td>
			</tr>
			<c:forEach items="${list }" var="bis_nurse_project" varStatus="st">
				<tr>
					<td>${st.index+1 }</td>
					<td>
					<input type="checkbox" value="${bis_nurse_project.project_id }" name="ch"/>
					</td>
					<td>${bis_nurse_project.project_name }</td>
					<td>${bis_nurse_project.type_name }</td>
					<td>${bis_nurse_project.server_time }</td>
					<td>${bis_nurse_project.rmb_price }</td>
					<td>${bis_nurse_project.beauty_price }</td>
					<td>${bis_nurse_project.manual_price }</td>
					<td>${bis_nurse_project.active_price }</td>
					<td>${bis_nurse_project.status==1?"在售":"下架" }</td>
					<td>${bis_nurse_project.modify_time }</td>
					<td>${bis_nurse_project.sort_no }</td>
					<td>
					<a class="btn btn-warning btn-xs" data-toggle="modal" data-target="#myModal"
						href="selectById/${bis_nurse_project.project_id }" role="button">
						 <span class="glyphicon glyphicon-zoom-in" aria-hidden="true"></span>
					</a>
					
				
					</td>

				</tr>
			</c:forEach>

</table>
<hr>
<input type="submit" value="确认选择项目"/>
</form>

<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document" style="100px">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">查看项目信息</h4>
      </div>
      <div class="modal-body">
      <iframe src="http://127.0.0.1:8081/bsc/jhy/seeBis_nurse_project">
      </iframe>
      </div>
      <div class="modal-footer">
      </div>
    </div>
  </div>
</div>

</body>
</html>
